package com.situ.lession1226.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

//返回不同的电影类别页面（电影列表）
@Controller
@RequestMapping("/category")
public class CategoryController {

    @GetMapping("/politics")
    public String politics(){
        return "category/politics";
        }

    @GetMapping("/economy")
    public String economy(){
        return "category/economy";
    }

    @GetMapping("/technology")
    public String technology(){
        return "category/technology";
    }

    @GetMapping("/health")
    public String health(){
        return "category/health";
    }

    @GetMapping("/sport")
    public String sport(){
        return "category/sport";
    }


}
